package com.cj.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cj.user.entity.File;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/9 21:55
 */
public interface FileService extends IService<File> {

    /**
     * 文件上传
     * @param file
     * @param fileId
     * @return
     */
    boolean saveFile(MultipartFile file, String fileId);

    /**
     * 文件下载
     * @param map
     * @param response
     */
    void selectFile(Map<String, Object> map, HttpServletResponse response);
}
